package com.yswy.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("app 用户")
@TableName(value = "user_wx_open")
public class UserWxOpen {
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("用户Id")
    private Long userId ;
    @ApiModelProperty("接口调用凭证")
    private String accessToken ;
    @ApiModelProperty("expires_in 接口调用凭证超时时间")
    private String expiresIn ;
    @ApiModelProperty("session_key 会话密钥")
    private String sessionKey ;
    @ApiModelProperty("用户刷新access_token")
    private String refreshToken;
    @ApiModelProperty("授权用户唯一标识")
    private String openid ;
    @ApiModelProperty("普通用户昵称")
    private String nickname;
    @ApiModelProperty("用户头像")
    private String headimgurl;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;

}
